package com.liumuxian.exam.pojo;

import com.sun.javafx.beans.IDProperty;
import lombok.Data;
import org.hibernate.annotations.NaturalIdCache;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Data
@Entity
@Table(name = "tb_examperformancedata")
@IdClass(ExamPerformanceData.class)
public class ExamPerformanceData implements Serializable {

    @Id
    @Column(name="examperformanceid",length = 20)
    private String examperformanceid;//考试历史的id

    @Id
    @Column(name = "questionid",length = 20)
    private String questionid;//试题id

    @Column(name="score",length = 20)
    private Long score;//分数
    @Column(name = "isright")
    private String isright;//是否正确
    @Column(name = "result")
    private String result;//输入的答案
    @Column(name = "state",length = 1)
    private Integer state;//状态（0代表删除，1代表存在）
    @Column(name = "creatdate")
    private Date creatdate;
    @Column(name = "updatedate")
    private Date updatedate;
    @Transient
    private Question question;
}
